package config

import (
	"pan/common"
)

const (
	TempLocalRootDir   = "/attach/upload/" // 本地临时存储地址的路径
	TempPartRootDir    = "/attach/chunk/"  // 分块文件在本地临时存储地址的路径
	CephRootDir        = "/ceph"           // Ceph的存储路径prefix
	OSSRootDir         = "oss/"            // OSS的存储路径prefix
	CurrentStoreType   = common.StoreLocal // 设置当前文件的存储类型
	PasswordSalt       = "*^@186"          // 加密盐
	MySQLSource        = "root:root@tcp(127.0.0.1:3306)/pan?charset=utf8mb4"
	OSSBucket          = "buckettest-pan"                 // oss bucket名
	OSSEndpoint        = "oss-cn-shenzhen.aliyuncs.com"   // oss endpoint
	OSSAccesskeyID     = "<你的AccesskeyId>"                // oss访问key
	OSSAccessKeySecret = "<你的AccessKeySecret>"            // oss访问key secret
	UploadServiceHost  = "0.0.0.0:8080"                   // 上传服务监听的地址
	UploadLBHost       = "http://upload.fileserver.com"   // 上传服务LB地址
	DownloadLBHost     = "http://download.fileserver.com" // 下载服务LB地址
	TracerAgentHost    = "127.0.0.1:6831"                 // tracing agent地址

	// mq配置
	AsyncTransferEnable  = true                                       // 是否开启文件异步转移(默认同步)
	TransExchangeName    = "uploadserver.trans"                       // 用于文件transfer的交换机
	TransOSSQueueName    = "uploadserver.trans.oss"                   // oss转移队列名
	TransOSSErrQueueName = "uploadserver.trans.oss.err"               // oss转移失败后写入另一个队列的队列名
	TransOSSRoutingKey   = "oss"                                      // routingkey
	RabbitURL            = "amqp://guest:guest@127.0.0.1:5672/"       // rabbitmq URL
	CephAccessKey        = "PFEA7NXWXSOWVTFA16C9"                     // Ceph访问Key
	CephSecretKey        = "cf3dwPMeadGbtEgwFUEA6emRVrVfDHpv0pLXFYby" // ceph访问密钥
	CephGWEndpoint       = "http://<你的rgw_host>:<<你的rgw_port>>"       // Ceph gateway地址
)
